<template>
    <div style="width: 100%;height: 100%;">
        <h1>一、码表选项框组件例子</h1>
        <h3>过滤器使用</h3>
        <h3>{{testValue | CodeFilter}}</h3>
        <h3>{{testValue}}</h3>
        <h3>1、</h3>
        <select-option select-type="radio" code="orderStatus" v-model="testValue"></select-option>
        <h3>2、</h3>
        <select-option select-type="select" code="orderStatus" v-model="testValue"></select-option>

        <h1>二、地图组件例子</h1>
        <h3>{{address}}</h3>
        <show-map :map-obj="obj" @send-info = getInfo></show-map>

    </div>
</template>

<script>
    import ShowMap from '../components/map/ShowMap.vue'
    import ParkingDetail from  '../components/map/ParkingDetail.vue'
    import SelectOption from '../components/SelectOption.vue'
    import Filter from '../utils/filter.js'
    export default {
        name: "Test",
        components:{ ShowMap,ParkingDetail,SelectOption },
        data(){
          return {
              address:"",
              testValue:0,
              obj:[106.497261, 29.53716]
          }
        },
        methods:{
            getInfo(data){
                console.log(data);
                this.address = data.address;
            }
        },
        watch:{
            testValue:function (data) {
                console.log(data)
            }
        },
        filters:{
            CodeFilter:function (data) {
                return Filter.CodeFilter(data)
            }
        }
    }
</script>

<style scoped>

</style>